{extend name="Public/base"/}
{block name="body"}
<div class="main-box clearfix">
	<header class="main-box-header clearfix">
		<div class="pull-left">
			<h2>新增钩子</h2>
		</div>
	</header>
	<div class="main-box-body clearfix">
		<form action="{:U('Addons/updateHook')}" method="post" class="form form-horizontal">
			<div class="form-group">
				<label class="col-lg-2 control-label">钩子名称</label>
				<div class="col-lg-6">
					<input type="text" class="form-control" name="name" value="{$info.name|default=''}">
					<span class="help-block">（钩子名称','需要在程序中先添加钩子，否则无效）</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">钩子描述</label>
				<div class="col-lg-6">
					<input type="text" class="form-control" name="description" value="{$info.description|default=''}">
					<span class="help-block">（钩子的描述信息）</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-lg-2 control-label">导航连接</label>
				<div class="col-lg-2">
					<select name="type_text" id="type_text" class="form-control">
						<option value="1">视图</option>
						<option value="2">控制器</option>
					</select>
				</div>
			</div>

		<div class="form-group">
			<div class="col-lg-offset-2 col-lg-10">
				<input type="hidden" name="id" value="{$info.id|default=''}">
				<button class="btn btn-success submit-btn ajax-post" type="submit" target-form="form-horizontal">确 定</button>
				<button class="btn btn-danger btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
			</div>
		</div>
	</form>
</div>
</div>
{/block}